// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from "./router";
import axios from 'axios'
import VueAxios from 'vue-axios'
import VueRouter from "vue-router";
import Mint from 'mint-ui';
import 'mint-ui/lib/style.css'
import './lib/css/mui.css'
import './lib/css/mui.min.css'
import './lib/css/icons-extra.css'
import VueTouch from 'vue-touch'
import '../static/iconfont/iconfont.css'
import Video from 'video.js'
import 'video.js/dist/video-js.css'
import Vuex from 'vuex'

Vue.prototype.$video = Video
Vue.use(VueTouch, {name: 'v-touch'})
Vue.use(VueRouter);
Vue.use(Mint);
Vue.use(VueAxios,axios)
Vue.use(Vuex)


Vue.config.productionTip = false




const store = new Vuex.Store({
  //存数据的
  state:{
      auto:[],
      home2:[]
  },
  //方法  专门操作state的数据  
  mutations:{
      increment(state,list){
          state.auto=list   
      },
      innerhome(state,list){
        state.home2=list   
    },
  }
})



/* eslint-disable no-new */
new Vue({
  el: '#app',
  components: { App },
  template: '<App/>',
  router,
  store,
  render:c=>c(App)
})
VueTouch.config.swipe = {

  threshold: 100 //手指左右滑动距离

}
